<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>视频及音频</title>
</head>
<body>
    <audio controls>
        <source src="audio&video/kebukeyi.mp3">
    </audio>
    <video src="audio&video/Anchor Glass Cows.mp4" controls="controls" width="800" height="500" poster="../img/pjcd.jpg"></video>
</body>
<script>
    window.onload=function(){
        var video=document.querySelector("video");
        var audio=document.querySelector("audio");
        // console.log(audio.duration);
        // console.log(video.duration);
        // console.log(video.error);
        // audio.autoplay=true;
        // audio.volume=0;
        // audio.muted=true;
        // video.autoplay=true;
        
        
    }


</script>
</html>